/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const VideoBloggerRouterMap = {
  id: 253,
  path: '/videoBlogger',
  component: Layout,
  name: 'UP主小程序',
  redirect: '/videoBlogger/config',
  meta: {title: 'UP主小程序', icon: 'video', power: 'video'},
  showMode: 'PLUGIN',
  children: [
    {
      id: 254,
      path: 'config',
      name: '基本设置',
      component: resolve => require(['@/views/plugins/videoBlogger/config'], resolve),
      meta: {title: '基本设置', icon: 'setting', power: 'video.setting'}
    }, {
      id: 254,
      path: 'vip',
      name: '会员设置',
      component: resolve => require(['@/views/plugins/videoBlogger/vip'], resolve),
      meta: {title: '会员设置', icon: 'setting', power: 'video.vip'}
    }, {
      id: 254,
      path: 'bloggerList',
      name: 'UP主管理',
      component: resolve => require(['@/views/plugins/videoBlogger/blogger'], resolve),
      meta: {title: 'UP主管理', icon: 'setting', power: 'video.setting'}
    }, {
      path: 'bloggerAdd',
      name: '添加Up主',
      component: resolve => require(['@/views/plugins/videoBlogger/blogger/modify'], resolve),
      meta: {title: '添加Up主', power: 'personnel.staff.modify'},
      hidden: true
    }, {
      path: 'bloggerEdit',
      name: 'UP主信息编辑',
      component: resolve => require(['@/views/plugins/videoBlogger/blogger/modify'], resolve),
      meta: {title: 'UP主信息编辑', power: 'personnel.staff.modify'},
      hidden: true
    }, {
      id: 254,
      path: 'videoList',
      name: '视频管理',
      component: resolve => require(['@/views/plugins/videoBlogger/video'], resolve),
      meta: {title: '视频管理', icon: 'setting', power: 'video.setting'}
    }, {
      id: 254,
      path: 'videoUpload',
      name: '视频管理',
      component: resolve => require(['@/views/plugins/videoBlogger/video/upload'], resolve),
      meta: {title: '上传视频', icon: 'setting', power: 'video.setting'},
      hidden: true
    }, {
      id: 254,
      path: 'courseList',
      name: '课程管理',
      component: resolve => require(['@/views/plugins/videoBlogger/course'], resolve),
      meta: {title: '课程管理', icon: 'setting', power: 'video.setting'}
    }, {
      id: 254,
      path: 'courseModify',
      name: '课程编辑',
      component: resolve => require(['@/views/plugins/videoBlogger/course/modify'], resolve),
      meta: {title: '课程编辑', icon: 'setting', power: 'video.setting'},
      hidden: true
    }, {
      id: 254,
      path: 'actionList',
      name: '动态管理',
      component: resolve => require(['@/views/plugins/videoBlogger/action'], resolve),
      meta: {title: '动态管理', icon: 'setting', power: 'video.setting'}
    }, {
      id: 254,
      path: 'channelList',
      name: '分区管理',
      component: resolve => require(['@/views/plugins/videoBlogger/channel'], resolve),
      meta: {title: '分区管理', icon: 'setting', power: 'video.setting'}
    }, {
      id: 254,
      path: 'bannerList',
      name: '轮播图管理',
      component: resolve => require(['@/views/plugins/videoBlogger/banner'], resolve),
      meta: {title: '轮播图管理', icon: 'setting', power: 'video.setting'}
    }, {
      id: 254,
      path: 'bannerAdd',
      name: '轮播图添加',
      component: resolve => require(['@/views/plugins/videoBlogger/banner/modify'], resolve),
      meta: {title: '轮播图添加', icon: 'setting', power: 'video.setting'},
      hidden: true
    }, {
      id: 254,
      path: 'bannerEdit',
      name: '轮播图修改',
      component: resolve => require(['@/views/plugins/videoBlogger/banner/modify'], resolve),
      meta: {title: '轮播图修改', icon: 'setting', power: 'video.setting'},
      hidden: true
    }, {
      id: 254,
      path: 'publish',
      name: '发布小程序',
      component: resolve => require(['@/views/plugins/videoBlogger/publish'], resolve),
      meta: {title: '发布小程序', icon: 'setting', power: 'video.setting'}
    }
  ]
}

export default VideoBloggerRouterMap;
